-module(test_data).

-export([
	student/1
]).

-include("gain.hrl").
-include("condition.hrl").


<?php
use function util\erl_attr_convert;
use function util\erl_gen_record;

$data = $xmlData[0];
array_shift($data);
array_shift($data);
array_shift($data);

foreach ($data as $v): ?>
student(<?=$v['id']?>) -> {<?=$v['id']?>, <<"<?=$v['name']?>"/utf8>>, <<"<?=$v['sex']?>"/utf8>>, <?=$v['age']?>, <?=$v['class']?>, [<?=erl_attr_convert($v['attr'])?>], <?=erl_gen_record($v['record'])?>};
<?php endforeach; ?>
student(_Id) -> undefined.
